Error using \Glsentrytext{} in section title.
Posted
by amicitas
on Stack Overflow
See other posts from Stack Overflow
or by amicitas
Published on 2010-06-15T23:43:28Z
Indexed on
2010/06/15
23:52 UTC
Read the original article
Hit count: 210
latex
|glossaries
When using the glossaries
package in a LaTeX document I occasionally want to use a glossary entry as part of section or chapter title. For example:
\section{\Glsentrytext{big}}
This however results in an error. Trying to use \protect\Glsentrytext{}
does not solve the the problem. Note that using the non-capitalized version (\glsentrytext
) does not produce any problems.
Does anyone know of a way to get this to work?
I use the glossaries package occasionally as way to format specific strings in a consistent way. For example \gls{big}
turns into 'beam-into-gas'. Obviously I could create two glossary entries, with and without caps, to achieve this and only include one in the final glossary. That is an ugly solution though.
© Stack Overflow or respective owner